<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ include file="/common/common.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/pub/process/";  //应用的地址名
String listActionName = basePath+"processTask.action?op=searchjs";
String addActionName = basePath+"processDefinition_toDeploy.action";
String editActionName = basePath+"processDefinition_modify.action";
String delActionName = basePath+"processDefinition_delete.action";
%>
<script language="javascript" src="<%=path %>/js/My97/WdatePicker.js"></script>
<script type="text/javascript">
    		$(function(){
			//表格初始化
			$('#searchTable').grid({
				title:[<ce:menu/>],
				url:'<%=listActionName%>',
				queryParams:{},  //用于查询的参数以及初始值
				//表头列，不建议改动
				frozenColumns:[[   
	                {field:'ck',checkbox:true}
				]],
				//数据列，根据显示的内容进行修改
				columns:[[ 
                        {field:'vcId',title:'Id',width:120,sortable:true,editor:'text'},
                        {field:'name',title:'名称',width:120,sortable:true,editor:'text'},
                        {field:'key',title:'KEY',width:120,sortable:true,editor:'text'},
						{field:'version',title:'版本号',width:120,sortable:true,editor:'text'},
						{field:'deploymentTime',title:'部署时间',width:120,sortable:true,editor:'text'}
						
						
						
				]],
				//功能按钮组
                toolbar:[<ce:jsonBtn/>]
			});
			//查询操作
			$('#search').click(function(){
                defaultSearchAction();
            });		
		});	
		
		//点击添加按钮后的操作：打开添加界面
        function openAddPage(){
            //默认的打开添加界面操作(添加页面地址，窗口宽度，窗口高度)
            defaultOpenAddPageHavebtn('<%=addActionName%>',400,300);
		}
		//点击编辑按钮后的操作：打开编辑界面
		function openModifyPage(){
		    //默认的打开编辑界面操作（编辑页面地址，窗口宽度，窗口高度）
            defaultOpenModifyPageHavebtn('<%=editActionName%>',500,500);
		}
		//删除数据操作
		function deleteItems(){
            defaultDeleteItems('<%=delActionName%>');
		}
		//点击帮助按钮后的操作：打开帮助界面
		function openHelpPage(){
		    defaultOpenWindow('<%=path%>/sys/menu/SysMenuHelp_look.action?chkSelf=','帮助信息查看',600,600);
		}
		
    
    </script>
<html>
  <head>
    <base href="<%=basePath%>"></base>
    <title><%=com.ce.util.RegeditUtil.getRegeditStringValue("SYSTEM_SEG_NAME") %></title>
  </head> 
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr height="30">
    <td>
    <div id="searchDiv" class="searchDiv">
     <div id="searchLeft" style=" width:85%; float:left">
       <div id="searchWrite"  class="searchWrite">
                 名称：<input type="text" id="names" name="names">
       </div>
       <div id="searchAuto" class="searchAuto" style="display:none">  
       </div>
     </div>
     <div id="searchRight" class="searchRight" style="padding-top:1px">
      <a id="search"  class="easyui-linkbutton" iconCls="icon-search">查询</a>
     </div>
   </div>
    </td>
  </tr>
  <tr>
    <td colspan="2"><div id="searchTable"></div></td>
  </tr>
</table>
</body>
</html>
   
   

